package com.zy.ems.common.enums;

public enum ColorHEX {
    col_white(1, "#FFFFFF", false), // 白色
    col_yellow(2, "#FFFF00", false), // 黄色
    col_block(3, "#000000", false), // 黑色
    col_red(4, "#FF0000", false), // 红色
    col_blue(5, "#0000FF", false), // 蓝色
    col_gray(6, "#808080", false), // 灰色
    col_pink(7, "#FFC0CB", false), // 粉色
    col_green(8, "#008000", false), // 绿色
    col_brown(9, "#A52A2A", false), // 棕色
    col_purple(10, "#800080", false), // 紫色
    col_orange(11, "#FFA500", false), // 橙色
    col_multicolour(12, "#ZZZZZZ", false), // 花色
    col_golden(13, "#FFD700", false), // 金色
    col_silver(14, "#E6E8FA", false), // 银色
    col_khaki(15, "#BDB76B", false), // 卡其
    col_nude(16, "#FAF0E6", false), // 裸色
    col_aquamarine(17, "#00C5CD", false), // 蓝绿
    col_transparent(18, "#FFFAF0", false);// 透明

    private int id;

    private String text;

    private boolean disable;

    private ColorHEX(int id, String text, boolean disable) {
        this.id = id;
        this.text = text;
        this.disable = disable;
    }

    public static String getColorHEX(String color) {
        for (ColorHEX hex : values()) {
            if (hex.toString().equalsIgnoreCase(color)) {
                return hex.getText();
            }
        }
        return color;
    }

    public int getId() {
        return id;
    }

    public String getText() {
        return text;
    }

    public boolean isDisable() {
        return disable;
    }

}
